<?php 
class future extends CI_Controller{
       
    function getFutureMeals() {
        $url = kitchen_base_url()."futureMeals";

        $xml = simplexml_load_file($url);
		pre_print_r($xml);
        $meals = $xml->day;
				
        $data = array(      
            'title' => 'Future Meals',
            'payload' => $meals,
            'view' => 'view_future',
			'footer_menu' => true,
        );
        
        $this->load->view('view_template', $data);
    }
    
    function index() {
        $this->getFutureMeals();
    }
    
}

?>
